genetic inheritance explained